package migrate

import (
	"gitee.com/xuxinzhi2206/corehub/database/mysql"
	"gorm.io/gorm"
)

func AutoMigrate(data ...interface{}) error {
	return mysql.WithMysql(func(db *gorm.DB) error {
		//数据迁移
		return db.AutoMigrate(data...)
	})
}
